package com.gla.giliair.service;

import com.gla.giliair.entity.*;
import com.gla.giliair.web.vo.AdminVO;
import com.gla.giliair.web.vo.CustomerVO;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/23 15:17
 */
public interface AdminService {
    Admin selectAdminById(Long adminId);

    List<Admin> selectAllAdmins(AdminExample orderBy);

    List<Admin> selectAdminsByParams(AdminExample orderBy, AdminVO searchParams);

    Map<String, Object> findAllAdmins(String sort, boolean isASC,Integer page, Integer pageSize);

    Map<String, Object> addAdmin(Admin admin);

    Map<String, Object> modifyAdmin(Admin admin);

    Map<String, Object> deleteAdmin(Long adminId);

    Map<String, Object> checkLogin(String username, String password, HttpSession httpSession);

    Map<String, Object> searchAdmins(String sort, boolean isASC, Integer page, Integer pageSize, AdminVO searchParams);
}
